<div>组件</div>
<p>{value}</p>
<button on:click={printPhone}>输出号码</button>
<slot></slot>
<script>
  import { createEventDispatcher } from 'svelte'
  const dispatch = createEventDispatcher()
  export let value = 3
  function printPhone() {
    dispatch('printPhone', '123232222')
  }
</script>
<style>

</style>